/**
 * Copyright (C) 2009 All Rights Reserved
 * @author sebastian chang
 * @brief practice
 */

#include <iostream>
#include <stdio.h>
#include <stdarg.h>

#include "log.h"

using namespace std;
using namespace trident;

int main(int argc, char argv[])
{
    initLog("/home/sebachang/test_dir", "test.log");

    while (true)
    {
        sleep(5);
        for (int i = 0; i < 1000; i++)
        {
            char* p = "select * from t_show where cpid=3020 and gameid=3020;";
            int j = 5;
            logFatal("log_impl_t::run begin ..................\n");
            logFatal("log_impl_t::run begin ..........\n");
            logFatal("log_impl_t::run begin ...\n");
            logError("log_impl_t::run sql: %s\n", p);
            logWarn("log_impl_t::run excute result: %d\n", j++);
            logInfo("log_impl_t::run what the fuck\n");
            logTrace("log_impl_t::run close the mysql connect\n");
            logDebug("log_impl_t::run end ok.\n");
            logDebug("log_impl_t::run end ok..........\n");
            logDebug("log_impl_t::run end ok..................\n");
        }
    }

   
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    //logFatal("log_impl_t::run begin ...\n");
    char buff[1024];
    cin>>buff;

    return 0;
}
